﻿[%^Main%]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>VietSilver CMS</title>
<link href="~/../style/reset.css" rel="stylesheet" type="text/css" />
<link href="~/../style/file.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="~/../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" language="javascript" src="~/../js/file.js"></script>
<script type="text/javascript" language="javascript" src="~/../js/swfobject.js"></script>
<script type="text/javascript" language="javascript" src="~/../js/jquery.uploadify.v2.1.0.min.js"></script>
<script type="text/javascript" language="javascript">
	$(document).ready(function(){
		$('#uploadForm').uploadify({
			'uploader': 'uploads/uploadify.swf',
			'script': 'upload.ashx',
			'scriptData': '{ "folder": "{{uploadToFolder}}" }',
			'fileDataName': 'fileData',
			'method': 'POST',
			'scriptAccess': 'always',
			'folder': 'uploads/{{uploadToFolder}}',
			'queueSizeLimit': '20',
			'multi': 'true',
			'fileDesc': '{{fileDesc}}',
			'fileExt': '{{fileExt}}',
			'sizeLimit': '10485760',
			'buttonImg': '~/../images/browse_{{currentLanguage}}.png',
			'buttonText': '{{#Browse}}...',
			'width': '69',
			'height': '20',
			'wmode': 'transparent ',
			'cancelImg': '~/../images/cancel.png',
			'onSelectOnce': function(event, data){ $('#uploadAction').show(); },
			'onCancel': function(event, queueID, fileObj, data){ if (data.fileCount == 0) $('#uploadAction').hide(); },
			'onComplete': function(event, queueID, fileObj, response, data){ if (data.fileCount == 0) $('#uploadAction').hide(); return true; }
		});
		
		
	});
</script>
<!--[if IE 5]>
<style type="text/css"> 
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
</head>
<body class="twoColFixLtHdr">
<div id="container">
  <div id="header" class="clearfix"> <span>{{#DRFMS}}</span>[%^LanguageFlag%]
    <div id="language">[%^LanguageFlagItem%]<a href="javascript:void(0);" class="language" onclick="javascript:ChangeLanguage('{{langCode}}');"><img src="~/../images/{{langCode}}.png" alt="{{langName}}" /></a>[%$LanguageFlagItem%] </div>
    [%$LanguageFlag%]
    <form id="searchForm" action="file.aspx" method="post">
      <p>
        <label for="search">{{#Search}}</label>
        <input type="text" id="search" name="search" value="{{searchValue}}" style="text-align:left;" />
      </p>
    </form>
  </div>
  <div id="folder">
    <ul>
      <li><a href="file.aspx?type=audio&return={{returnObject}}">{{#Audio}}</a></li>
      <li><a href="file.aspx?type=compressed&return={{returnObject}}">{{#Compressed}}</a></li>
      <li><a href="file.aspx?type=document&return={{returnObject}}">{{#Document}}</a></li>
      <li><a href="file.aspx?type=file&return={{returnObject}}">{{#OtherFiles}}</a></li>
      <li><a href="file.aspx?type=image&return={{returnObject}}">{{#Image}}</a></li>
      <li><a href="file.aspx?type=video&return={{returnObject}}">{{#Video}}</a></li>
    </ul>
  </div>
  <div id="mainContent">
    <input id="uploadForm" name="uploadForm" type="file" />
    <div id="uploadAction">
      <a href="javascript:void(0);" class="button" onclick="$('#uploadForm').uploadifyUpload();">{{#Upload}}</a>
      <a href="javascript:void(0);" class="button" onclick="$('#uploadForm').uploadifyCancel();">{{#Cancel}}</a>
      <a href="javascript:void(0);" class="button" onclick="$('#uploadForm').uploadifyClearQueue(); $('#uploadAction').hide();">{{#Clear}}</a>
    </div>
	</div>
  <div class="clearfix"></div>
  <div id="footer">{{#Copyright}}</div>
</div>
</body>
{{errorCode}}
</html>
[%$Main%]